<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Flight Service: FlightService.PriceAlgorithm Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Flight Service
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_flight_service.html">FlightService</a></li><li class="navelem"><a class="el" href="class_flight_service_1_1_price_algorithm.html">PriceAlgorithm</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_flight_service_1_1_price_algorithm-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">FlightService.PriceAlgorithm Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Algorithm that looks for the cheapest flights  
 <a href="class_flight_service_1_1_price_algorithm.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for FlightService.PriceAlgorithm:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_flight_service_1_1_price_algorithm.png" usemap="#FlightService.PriceAlgorithm_map" alt=""/>
  <map id="FlightService.PriceAlgorithm_map" name="FlightService.PriceAlgorithm_map">
<area href="interface_flight_service_1_1_i_algorithm.html" title="Interface for flight algorithms " alt="FlightService.IAlgorithm" shape="rect" coords="0,0,174,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac598673ab3f00539ec31e03cd67b2734"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_flight_service_1_1_price_algorithm.html#ac598673ab3f00539ec31e03cd67b2734">Execute</a> (<a class="el" href="class_flight_service_1_1_request.html">Request</a> request, string filepath)</td></tr>
<tr class="memdesc:ac598673ab3f00539ec31e03cd67b2734"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm  <a href="#ac598673ab3f00539ec31e03cd67b2734"></a><br/></td></tr>
<tr class="separator:ac598673ab3f00539ec31e03cd67b2734"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2d0e2789a1aa62848fa538501bc5743"><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_flight_service_1_1_price_algorithm.html#ac2d0e2789a1aa62848fa538501bc5743">Execute</a> (<a class="el" href="class_flight_service_1_1_request.html">Request</a> request, SqlConnection cnn)</td></tr>
<tr class="memdesc:ac2d0e2789a1aa62848fa538501bc5743"><td class="mdescLeft">&#160;</td><td class="mdescRight">Executes the algorithm  <a href="#ac2d0e2789a1aa62848fa538501bc5743"></a><br/></td></tr>
<tr class="separator:ac2d0e2789a1aa62848fa538501bc5743"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:afe24674d1ce12439cd3c41f94aaee1bb"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_flight_service_1_1_flight.html">Flight</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_flight_service_1_1_price_algorithm.html#afe24674d1ce12439cd3c41f94aaee1bb">RequestedFlights</a><code> [get, set]</code></td></tr>
<tr class="separator:afe24674d1ce12439cd3c41f94aaee1bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_flight_service_1_1_i_algorithm"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_flight_service_1_1_i_algorithm')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="interface_flight_service_1_1_i_algorithm.html">FlightService.IAlgorithm</a></td></tr>
<tr class="memitem:a12ad3d1ed0d146a12028fcd308977a44 inherit properties_interface_flight_service_1_1_i_algorithm"><td class="memItemLeft" align="right" valign="top">List&lt; <a class="el" href="class_flight_service_1_1_flight.html">Flight</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_flight_service_1_1_i_algorithm.html#a12ad3d1ed0d146a12028fcd308977a44">RequestedFlights</a><code> [get]</code></td></tr>
<tr class="memdesc:a12ad3d1ed0d146a12028fcd308977a44 inherit properties_interface_flight_service_1_1_i_algorithm"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of Flights from client's request  <a href="#a12ad3d1ed0d146a12028fcd308977a44"></a><br/></td></tr>
<tr class="separator:a12ad3d1ed0d146a12028fcd308977a44 inherit properties_interface_flight_service_1_1_i_algorithm"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Algorithm that looks for the cheapest flights </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ac598673ab3f00539ec31e03cd67b2734"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string FlightService.PriceAlgorithm.Execute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_flight_service_1_1_request.html">Request</a>&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>filepath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes the algorithm </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">request</td><td><a class="el" href="class_flight_service_1_1_request.html" title="Class that encapsulates a proper request from a client ">Request</a> object</td></tr>
    <tr><td class="paramname">filepath</td><td>Path to the file with database</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String with response</dd></dl>

<p>Implements <a class="el" href="interface_flight_service_1_1_i_algorithm.html#a7173b6c6ccf8093307f7a3939392881e">FlightService.IAlgorithm</a>.</p>

</div>
</div>
<a class="anchor" id="ac2d0e2789a1aa62848fa538501bc5743"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string FlightService.PriceAlgorithm.Execute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_flight_service_1_1_request.html">Request</a>&#160;</td>
          <td class="paramname"><em>request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SqlConnection&#160;</td>
          <td class="paramname"><em>cnn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Executes the algorithm </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">request</td><td><a class="el" href="class_flight_service_1_1_request.html" title="Class that encapsulates a proper request from a client ">Request</a> object</td></tr>
    <tr><td class="paramname">cnn</td><td>Connection to the database</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>String with response</dd></dl>

<p>Implements <a class="el" href="interface_flight_service_1_1_i_algorithm.html#a6e6bcb5d72b9cb19c2f923f891324a55">FlightService.IAlgorithm</a>.</p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="afe24674d1ce12439cd3c41f94aaee1bb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">List&lt;<a class="el" href="class_flight_service_1_1_flight.html">Flight</a>&gt; FlightService.PriceAlgorithm.RequestedFlights</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>C:/Users/Karolina/Desktop/flight-service/FlightService/FlightService/<a class="el" href="_price_algorithm_8cs.html">PriceAlgorithm.cs</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jul 15 2013 20:47:28 for Flight Service by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
